cmake_minimum_required(VERSION 3.4.1)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/../libs/${ANDROID_ABI})

#设置头文件搜索路径（和此txt同个路径的头文件无需设置）
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/lua
        ${CMAKE_CURRENT_SOURCE_DIR}/luasocket
        ${CMAKE_CURRENT_SOURCE_DIR}/japi
        )

#添加子目录，将自动找到子目录中的CMakeLists.txt
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/lua)
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/luasocket)
ADD_SUBDIRECTORY(${CMAKE_CURRENT_SOURCE_DIR}/japi)

